package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsPublicNotifyMapper;
import com.hckjsec.cloud.domain.AppletsPublicNotify;
import com.hckjsec.cloud.service.IAppletsPublicNotifyService;

/**
 * 通知公告Service业务层处理
 * 
 * @author cyt
 * @date 2021-09-04
 */
@Service
public class AppletsPublicNotifyServiceImpl implements IAppletsPublicNotifyService 
{
    @Autowired
    private AppletsPublicNotifyMapper appletsPublicNotifyMapper;

    /**
     * 查询通知公告
     * 
     * @param notifyId 通知公告ID
     * @return 通知公告
     */
    @Override
    public AppletsPublicNotify selectAppletsPublicNotifyById(Long notifyId)
    {
        return appletsPublicNotifyMapper.selectAppletsPublicNotifyById(notifyId);
    }

    /**
     * 查询通知公告列表
     * 
     * @param appletsPublicNotify 通知公告
     * @return 通知公告
     */
    @Override
    public List<AppletsPublicNotify> selectAppletsPublicNotifyList(AppletsPublicNotify appletsPublicNotify)
    {
        return appletsPublicNotifyMapper.selectAppletsPublicNotifyList(appletsPublicNotify);
    }

    /**
     * 新增通知公告
     * 
     * @param appletsPublicNotify 通知公告
     * @return 结果
     */
    @Override
    public int insertAppletsPublicNotify(AppletsPublicNotify appletsPublicNotify)
    {
        return appletsPublicNotifyMapper.insertAppletsPublicNotify(appletsPublicNotify);
    }

    /**
     * 修改通知公告
     * 
     * @param appletsPublicNotify 通知公告
     * @return 结果
     */
    @Override
    public int updateAppletsPublicNotify(AppletsPublicNotify appletsPublicNotify)
    {
        return appletsPublicNotifyMapper.updateAppletsPublicNotify(appletsPublicNotify);
    }

    /**
     * 批量删除通知公告
     * 
     * @param notifyIds 需要删除的通知公告ID
     * @return 结果
     */
    @Override
    public int deleteAppletsPublicNotifyByIds(Long[] notifyIds)
    {
        return appletsPublicNotifyMapper.deleteAppletsPublicNotifyByIds(notifyIds);
    }

    /**
     * 删除通知公告信息
     * 
     * @param notifyId 通知公告ID
     * @return 结果
     */
    @Override
    public int deleteAppletsPublicNotifyById(Long notifyId)
    {
        return appletsPublicNotifyMapper.deleteAppletsPublicNotifyById(notifyId);
    }
}
